<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PDF2DOCX - 欢迎使用</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            padding: 50px;
            max-width: 800px;
            width: 100%;
            text-align: center;
        }
        
        .header h1 {
            color: #333;
            font-size: 3em;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .header p {
            color: #666;
            font-size: 1.3em;
            margin-bottom: 50px;
            line-height: 1.6;
        }
        
        .options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }
        
        .option-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 40px 30px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            cursor: pointer;
        }
        
        .option-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: #667eea;
        }
        
        .option-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }
        
        .option-title {
            font-size: 1.5em;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
        }
        
        .option-description {
            color: #666;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        
        .btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }
        
        .features {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            margin: 40px 0;
        }
        
        .features h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.5em;
        }
        
        .feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            text-align: left;
        }
        
        .feature-item {
            color: #666;
            padding: 10px 0;
        }
        
        .feature-item::before {
            content: "✅ ";
            color: #28a745;
            font-weight: bold;
        }
        
        @media (max-width: 768px) {
            .container { padding: 30px 20px; }
            .header h1 { font-size: 2.5em; }
            .options { grid-template-columns: 1fr; }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>📄 PDF2DOCX</h1>
            <p>专业的PDF转Word在线转换工具<br>支持网页使用和API集成</p>
        </div>
        
        <div class="options">
            <div class="option-card" onclick="window.location.href='/converter'">
                <div class="option-icon">🌐</div>
                <div class="option-title">网页转换工具</div>
                <div class="option-description">
                    简单易用的网页界面，支持拖拽上传、实时进度显示、自动下载。
                    适合个人用户和偶尔使用的场景。
                </div>
                <a href="/converter" class="btn">🚀 开始转换</a>
            </div>
            
            <div class="option-card" onclick="window.location.href='/api-demo'">
                <div class="option-icon">⚡</div>
                <div class="option-title">API接口服务</div>
                <div class="option-description">
                    完整的RESTful API接口，支持批量转换、系统集成。
                    适合开发者和企业用户。
                </div>
                <a href="/api-demo" class="btn">📋 查看接口</a>
            </div>
        </div>
        
        <div class="features">
            <h3>🎯 核心功能特性</h3>
            <div class="feature-list">
                <div class="feature-item">支持50MB大文件转换</div>
                <div class="feature-item">保持原始格式和布局</div>
                <div class="feature-item">支持页面范围选择</div>
                <div class="feature-item">批量转换多个文件</div>
                <div class="feature-item">实时转换进度显示</div>
                <div class="feature-item">自动清理临时文件</div>
                <div class="feature-item">完整的API接口</div>
                <div class="feature-item">支持系统状态监控</div>
            </div>
        </div>
        
        <div style="margin-top: 40px; padding: 20px; background: #e8f4fd; border-radius: 10px;">
            <h4 style="color: #0066cc; margin-bottom: 10px;">💡 使用建议</h4>
            <p style="color: #666; line-height: 1.6;">
                • 文本型PDF转换效果最佳，扫描版PDF会保留图片格式<br>
                • 建议文件大小控制在50MB以内以获得最佳性能<br>
                • 支持中文文档转换，保持原始字体和格式
            </p>
        </div>
    </div>
</body>
</html>